using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using MonoTouch.Foundation;
using MonoTouch.UIKit;
using CoachingOrganizer.Logic.Models.Common;
using CoachingOrganizer.iOS.Helpers;

namespace CoachingOrganizer.iOS.Controllers
{
    public partial class GoalViewController : UIViewController
    {
        private readonly GoalModel _model;

        public GoalViewController(GoalModel model)
            : base("GoalView", NSBundle.MainBundle)
        {
            _model = model;
        }

        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            TitleView.Text = _model.Title;
        }

		partial void ShowGoalDetails (NSObject sender)
		{
            UIHelper.ShowDetailsStoryboad<GoalDetailsViewController>("GoalDetailsView", ParentViewController, c => c.HookModel(_model));
		}
    }
}